.class final Lcom/burstly/lib/network/request/RequestManager$1;
.super Landroid/content/BroadcastReceiver;
.source "RequestManager.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/burstly/lib/network/request/RequestManager;->initRquestManager(Landroid/content/Context;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x8
    name = null
.end annotation


# direct methods
.method constructor <init>()V
    .locals 0

    .prologue
    .line 424
    invoke-direct {p0}, Landroid/content/BroadcastReceiver;-><init>()V

    return-void
.end method


# virtual methods
.method public onReceive(Landroid/content/Context;Landroid/content/Intent;)V
    .locals 6
    .parameter "context"
    .parameter "intent"

    .prologue
    const/4 v5, 0x0

    .line 428
    invoke-static {}, Lcom/burstly/lib/network/request/RequestManager;->isOnline()Z

    move-result v2

    if-eqz v2, :cond_1

    .line 429
    invoke-static {}, Lcom/burstly/lib/network/request/RequestManager;->access$000()Lcom/burstly/lib/util/LoggerExt;

    move-result-object v2

    const-string v3, "RequestManager"

    const-string v4, "Network connected. Resuming autorefresh if any..."

    new-array v5, v5, [Ljava/lang/Object;

    invoke-virtual {v2, v3, v4, v5}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 430
    invoke-static {}, Lcom/burstly/lib/network/request/RequestManager;->access$100()Ljava/util/List;

    move-result-object v2

    invoke-interface {v2}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    .local v0, i$:Ljava/util/Iterator;
    :cond_0
    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_2

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/burstly/lib/ui/BurstlyView;

    .line 431
    .local v1, view:Lcom/burstly/lib/ui/BurstlyView;
    invoke-virtual {v1}, Lcom/burstly/lib/ui/BurstlyView;->getDefaultSessionLife()I

    move-result v2

    if-lez v2, :cond_0

    .line 432
    invoke-virtual {v1}, Lcom/burstly/lib/ui/BurstlyView;->startDelayedRequest()V

    goto :goto_0

    .line 436
    .end local v0           #i$:Ljava/util/Iterator;
    .end local v1           #view:Lcom/burstly/lib/ui/BurstlyView;
    :cond_1
    invoke-static {}, Lcom/burstly/lib/network/request/RequestManager;->access$000()Lcom/burstly/lib/util/LoggerExt;

    move-result-object v2

    const-string v3, "RequestManager"

    const-string v4, "Network disconnected."

    new-array v5, v5, [Ljava/lang/Object;

    invoke-virtual {v2, v3, v4, v5}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 438
    :cond_2
    return-void
.end method
